package com.fyl.pattern.factory.abstract_factory;

public class Client {
    public static void main(String[] args) {
        DessertCoffeeFactory factory = new ItalyDessertCoffeeFactory();
        Coffee coffee = factory.createCoffee();
        Dessert dessert = factory.createDessert();
        System.out.println("dessert.getName() = " + dessert.getName());
        System.out.println("coffee.getName() = " + coffee.getName());
    }
}
